﻿namespace Gateway.Common.Result
{
    public class TreeSelectResult<T>
    {
        /// <summary>
        /// id
        /// </summary>
        public string Id { get; set; } = string.Empty;

        /// <summary>
        /// 排序码
        /// </summary>
        public int SortNumber { get; set; }

        /// <summary>
        /// 父id
        /// </summary>
        public string ParentId { get; set; } = string.Empty;

        /// <summary>
        /// 子项
        /// </summary>
        public virtual List<T> Children { get; set; } = new List<T>(0);
    }
}